package pet_pavilion.yushougeums.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
import pet_pavilion.yushougeums.pojo.entity.User;
import pet_pavilion.yushougeums.pojo.vo.UserLoginInfoVO;
import pet_pavilion.yushougeums.pojo.vo.UserRegVO;
import pet_pavilion.yushougeums.pojo.vo.UserStandardVO;

import java.util.List;


@Repository
public interface UserMapper extends BaseMapper<User> {

    int insertBatch(List<User> userList);

    /**
     * 根据用户名查询管理员的登录信息
     *
     * @param username 用户名
     * @return 匹配的管理员的登录信息，如果没有匹配的数据，则返回null
     */
    UserLoginInfoVO getLoginInfoByUsername(String username);

    UserStandardVO getStandardById(Long id);


}
